package com.songcha.library_business.mvvm

import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_business.api.ApiManager
import com.songcha.library_business.bean.banner.BannerBean
import com.songcha.library_business.bean.configuration.SystemConfigurationBean
import com.songcha.library_business.bean.user.UserInfoBean
import com.songcha.library_network.bean.BaseBean
import io.reactivex.Observable
import okhttp3.RequestBody.Companion.toRequestBody
import org.json.JSONArray
import org.json.JSONObject

/***
 * common repository
 */
open class BusinessRepository:BaseRepository() {
    fun getUserInfo(): Observable<UserInfoBean> {
        return ApiManager.api.getUserInfo()
    }

    fun appStart():Observable<BaseBean>{
        return ApiManager.api.appStart()
    }

    fun updateClientIp():Observable<BaseBean>{
        return ApiManager.api.updateClientIp()
    }

    fun getSystemConfiguration():Observable<SystemConfigurationBean>{
        return ApiManager.api_timeout15.getSystemConfiguration()
    }

}